<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>拖拽悬浮图-动态</title>
  <link rel="stylesheet" href="./style.css">
</head>
<body>
  <div class="main" id="main">
    <div class="map"></div>
    <div class="div-float" id="divfloat">
      <canvas id="triangle"  class="div-float-canvas" width="0" height="0"></canvas>
      <div class="div-float-content">
      </div>
    </div>
  </div>

  <script>
    const moduleFn = {}
  </script>

  <script type="module">
    import {onSetTimeOut} from './js/dynamics.js'
    moduleFn.onSetTimeOut = onSetTimeOut
  </script>
  <script>
    window.addEventListener('load', () => {
      console.log('window on load')
      moduleFn.onSetTimeOut()
    })
  </script>
</body>
</html>